package com.kgcx.organization.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import javax.persistence.Transient;

@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "t_organization_station_parking")
@ApiModel(value = "站务泊车位")
public class StationParking extends AbstractParking {
    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", required = true, example = "1号停车位")
    private String name;
    /**
     * 站务id
     */
    @ApiModelProperty(value = "站务id", required = true, example = "1")
    private Long stationId;
    /**
     * 高铁站名称
     */
    @ApiModelProperty(value = "高铁站名称", readOnly = true, example = "长沙南站")
    @Transient
    private String stationName;
    /**
     * 出站口id
     */
    @ApiModelProperty(value = "出站口id", required = true, example = "1")
    private Long stationExitId;
    /**
     * 出站口名称
     */
    @ApiModelProperty(value = "出站口名称", readOnly = true, example = "A1出口")
    @Transient
    private String stationExitName;
    /**
     * 城市id
     */
    @ApiModelProperty(value = "城市id，行政区域编码", required = true, example = "4301")
    private Long cityId;

    /**
     * 纬度
     */
    @ApiModelProperty(value = "纬度", readOnly = true, example = "28.1887000000")
    private String lat;
    /**
     * 经度
     */
    @ApiModelProperty(value = "经度", readOnly = true, example = "113.2262550000")
    private String lng;

}